#ifndef __CITY_TYPE_H__
#define __CITY_TYPE_H__

#include "../import/head.h"
#include "../tools/head.h"

//////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_sgsj
{

	class city_type : public xos_stl::mem_pool_item< city_type, thread_lock >
    {
    public:
        city_type();
        ~city_type();

	public:
		static int add( const char * lpszName, const char * lpszCode, int nId, int nMaxBuildLevel, int * lpIntId );
		static int del( const char * lpszName, const char * lpszCode, int nId );
		static int modify( int nId, int nMaxBuildLevel, const char * lpszName, const char * lpszCode );
		static int get( const char * lpszName, const char * lpszCode, int nId, city_type::LIST * pRetList );

	public:
		int build_level;
		char name[64];
		char code[64];
		int city_type_id;
		
    public:
		int release();
        int init();
        int term();
    };
} // xos_sgsj

#endif // __CITY_TYPE_H__
